//
//  CustonNavController.swift
//  ScrollTabBarController
//
//  Created by 好米有易 on 2017/11/17.
//  Copyright © 2017年 好米有易. All rights reserved.
//

import UIKit

class CustonNavController: UIViewController {

    lazy var navView: CustomNavView = {
        
        let navView = CustomNavView()
        
        return navView
    }()
  
    convenience init(rootViewController: UIViewController) {
        
       self.init(rootViewController: rootViewController)
        
        addChildViewController(rootViewController)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
        
    }

    
    

}








// MARK: - UI
extension CustonNavController {
    
    private func setupUI() {
        
        view.addSubview(navView)
        
    }
    
}
